package com.wuze.cloud.exception;

import lombok.Data;

/**
 * @author: wuze
 * @description:
 * @date: 2023/02/16
 */
@Data
public class SysGlobalException extends RuntimeException {
    private static final long serialVersionUID = -4006387037704180514L;

    private Integer code;
    private String message;

    public SysGlobalException(Integer code , String message) {
        this.code = code;
        this.message = message;
    }

    public SysGlobalException() {
        super();
    }

    public SysGlobalException(String message) {
        super(message);
    }

    public SysGlobalException(String message, Throwable cause) {
        super(message, cause);
    }

    public SysGlobalException(Throwable cause) {
        super(cause);
    }

    protected SysGlobalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
